package spring.cloud.tasks.api.database.service;

import spring.cloud.tasks.api.database.entity.ZooKeeperClusterDto;

import java.util.List;

public interface ZooKeeperClusterDtoService {
    int createZooKeeperClusterInfo(String zooKeeperClusterKey, String alias, String connectString, String description, String createdBy);

    int updateZooKeeperClusterInfo(ZooKeeperClusterDto zooKeeperClusterInfo);

    int deleteZooKeeperClusterInfo(String zooKeeperClusterKey);

    ZooKeeperClusterDto getZooKeeperClusterInfoByZooKeeperClusterKey(String zooKeeperClusterKey);

    List<ZooKeeperClusterDto> getZooKeeperClusterInfoList();

}
